projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874649e
)
Fix waypoint transformation for routes and tracks.
author
oliskoli
<oliskoli>
Sun, 12 Nov 2006 07:42:26 +0000
(07:42 +0000)
committer
oliskoli
<oliskoli>
Sun, 12 Nov 2006 07:42:26 +0000
(07:42 +0000)
transform.c
patch
|
blob
|
history
diff --git
a/transform.c
b/transform.c
index c52843c3267759390fd7882190fb630de4843c49..9d47f436086bb9894ba0580956c473d6800c1772 100644
(file)
--- a/
transform.c
+++ b/
transform.c
@@
-98,7
+98,12
@@
static void
transform_any_disp_wpt_cb(const waypoint *wpt)
{
waypoint *temp = waypt_dupe(wpt);
- waypt_add(temp);
+ if (current_target == 'R')
+ route_add_wpt(current_rte, temp);
+ else if (current_target == 'T')
+ track_add_wpt(current_trk, temp);
+ else
+ waypt_add(temp);
}
static void